* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

.chat {
    border: 1px solid #f2f2f2;
    width: 14.395rem;
    height: 8.985rem;
    overflow: hidden;
    margin: 0 auto;
    nav {
        height: 0.564rem;
        background: rgba(202, 195, 208, 0.5);
        ul {
            display: flex;
            justify-content: space-between;
            height: 100%;
            li {
                display: flex;
                align-items: center;
                height: 100%;
                input {
                    margin-left: 0.725rem;
                    height: 0.265rem;
                    width: 0.86rem;
                    border-radius: 50px;
                    outline: none;
                    border: none;
                }
                &:nth-of-type(1) {
                    position: relative;
                    i:nth-of-type(2) {
                        margin-left: 0.085rem;
                        &::before {
                            font-size: 0.23rem;
                            color: white;
                        }
                    }
                    i:nth-of-type(1) {
                        left: 41%;
                        position: absolute;
                        &::before {
                            font-size: 0.15rem;
                            color: #8f8f90;
                        }
                    }
                }
                &:nth-of-type(2) {
                    >i:nth-of-type(2) {
                        margin: 0rem 0.425rem;
                    }
                    >i {
                        &::before {
                            font-size: 0.25rem;
                        }
                    }
                }
            }
        }
    }
    article {
        display: flex;
        height: 8.461rem;
        aside.chat_friend_left {
            width: 2.004rem;
            height: 100%;
            overflow-y: scroll;
            border-right: 1px solid #f2f2f2;
            ul.chat_friend_list {
                position: relative;
                * {
                    pointer-events: none;
                }
                >li {
                    div.circleList {
                        content: '';
                        position: absolute;
                        background-color: red;
                        width: 0.2rem;
                        height: 0.2rem;
                        border-radius: 50%;
                        bottom: 0.14rem;
                        right: 0.01rem;
                    }
                    &:nth-of-type(1) {
                        >span:nth-of-type(1) {
                            opacity: 0.5;
                            background-color: #abcedf;
                        }
                    }
                    &.friendList {
                        pointer-events: auto;
                    }
                    padding-left: 0.2rem;
                    display: flex;
                    align-items: center;
                    line-height: 0.695rem;
                    height: 0.695rem;
                    >span:nth-of-type(1) {
                        text-align: center;
                        line-height: 0.41rem;
                        font-size: 0.23rem;
                        color: white;
                        display: inline-block;
                        width: 0.41rem;
                        height: 0.41rem;
                        border-radius: 50%;
                        border: 1px solid black;
                    }
                    >span:nth-of-type(2) {
                        margin-left: 0.1rem;
                        height: 0.465rem;
                        ul {
                            height: 0.465rem;
                            li {
                                height: 0.235rem;
                                line-height: 0.235rem;
                                &:nth-of-type(1) {
                                    display: flex;
                                    >p:nth-of-type(1) {
                                        font-weight: bold;
                                        width: 0.58rem;
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                        white-space: nowrap;
                                    }
                                    >P:nth-of-type(2) {
                                        margin-left: 0.115rem;
                                        color: #d9d9d9;
                                    }
                                }
                                >p:nth-of-type(1) {
                                    font-size: 0.13rem;
                                }
                                >P:nth-of-type(2) {
                                    font-size: 0.11rem;
                                }
                                &:nth-of-type(2) {
                                    p {
                                        color: #717171;
                                        width: 0.96rem;
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                        white-space: nowrap;
                                        font-size: 0.135rem;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .chat_friend_left::-webkit-scrollbar {
            width: 4px;
        }
        .chat_friend_left::-webkit-scrollbar-thumb {
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.1);
        }
        .chat_friend_left::-webkit-scrollbar-track {
            border-radius: 0;
        }
        div.chat_content_right {
            width: 12.421rem;
            height: 8.461rem;
            >div {
                height: 100%;
                div.chat_content_right_top {
                    height: 0.445rem;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    p {
                        margin-left: 0.215rem;
                        font-weight: bold;
                        font-size: 0.145rem;
                    }
                    >ul {
                        margin-right: 0.155rem;
                        display: flex;
                        >li {
                            height: 0.445rem;
                            display: flex;
                            align-items: center;
                            i {
                                display: inline-block;
                                line-height: 0.445rem;
                                height: 0.445rem;
                            }
                            &:nth-of-type(2) {
                                margin: 0rem 0.145rem;
                            }
                        }
                    }
                }
            }
            ul.chat_content_list {
                overflow-y: scroll;
                width: 102%;
                height: 5.985rem;
                background-color: #fdfdfd;
                .chat_time {
                    color: gray;
                    font-size: 18px;
                    text-align: center;
                }
                .message_item {
                    position: relative;
                    vertical-align: top;
                    padding: 35px;
                    width: 50%;
                    font-size: 14px;
                }
                .user_avatar,
                .user_info {
                    width: 90%;
                    display: inline-block;
                }
                .user_avatar {
                    text-align: center;
                    color: white;
                    line-height: 30px;
                    /* 垂直方向上偏上 */
                    vertical-align: top;
                    width: 30px;
                    height: 30px;
                    background-color: orange;
                    margin-right: 12px;
                    border-radius: 50%;
                }
                .algin_right {
                    position: relative;
                    transform: translateX(100%);
                    .user_avatar {
                        margin-right: 0px;
                        margin-left: 12px;
                    }
                    text-align: right;
                    .user_message {
                        right: 80px;
                        &::after {
                            content: '';
                            position: absolute;
                            top: 74px;
                            right: 66px;
                            border: 0rem solid transparent;
                            border-bottom: 0.12rem solid #def3fd;
                            border-radius: 0 0 20px 0;
                            width: 20px;
                            height: 12px;
                            text-align: left;
                        }
                        &::before {
                            content: '';
                            width: 0px;
                            height: 0px;
                        }
                    }
                }
                .user_nickname {
                    /* 2.2*14 */
                    line-height: 2.2;
                }
                .user_message {
                    display: inline-block;
                    text-align: left;
                    // width: 50%;
                    margin-top: 10px;
                    // display: inline-block;
                    background-color: #def3fd;
                    padding: 8px;
                    color: #333;
                    border-radius: 4px;
                    &::before {
                        content: '';
                        position: absolute;
                        top: 76px;
                        left: 70px;
                        border: 0rem solid transparent;
                        border-bottom: 0.12rem solid #def3fd;
                        border-radius: 0 0 0 20px;
                        width: 20px;
                        height: 12px;
                    }
                }
            }
            div.chat_content_bottom {
                height: 1.999rem;
                border-top: 1px solid #f2f2f2;
                ul.chat_bottom_expression {
                    padding-left: 0.105rem;
                    height: 0.446rem;
                    display: flex;
                    align-items: center;
                    li {
                        display: flex;
                        align-items: center;
                        height: 100%;
                        width: 0.41rem;
                        text-align: center;
                        i {
                            width: 0.41rem;
                            text-align: center;
                            line-height: 0.446rem;
                            height: 100%;
                            display: inline-block;
                            &::before {
                                font-size: 0.22rem;
                                color: #8a8a8b;
                            }
                        }
                    }
                }
                >div {
                    height: 100%;
                    width: 100%;
                    textarea {
                        padding: 10px;
                        width: 100%;
                        resize: none;
                        border: none;
                        outline: none;
                    }
                }
            }
        }
    }
}

.mask {
    display: none;
    font-size: 16px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .2);
    >div {
        padding: 20px 0px;
        background-color: white;
        width: 300px;
        height: 150px;
        margin: 40px auto;
        border-radius: 15px;
        p {
            text-align: center;
            &:nth-of-type(2) {
                margin-top: 15px;
            }
        }
        ul {
            display: flex;
            justify-content: space-between;
            li {
                border-top: 1px solid rgba(0, 0, 0, .2);
                margin-top: 26px;
                height: 48px;
                line-height: 45px;
                flex: 1;
                text-align: center;
            }
        }
    }
}